/*
* $Id: Operation.cpp 2 2009-12-23 13:58:02Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Aleksey
* All rights reserved
*
*/
#include "Common/include.h"
#include "Operation.h"
#include "Result.h"

IResult* CFillContent::FillContent(const MyTable& table)
{
	IOperation::Table result;
	for(MyTable::const_iterator it = table.begin(); it != table.end(); it++){
		std::vector<IOperation::i_content*> temp;
		result.push_back(CreateContent());
		result.back()->Set(*it);
	}
	return new CResult(result);
}

COperation::COperation(){}
COperation::~COperation(){}
void COperation::UpdateValue(IDatabase* pDatabase){}
IResult* COperation::GetValue(IDatabase* pDatabase){
	IOperation::Table result;
	return new CResult(result);
}
void COperation::SetValue(IDatabase* pDatabase){}
void COperation::DeleteValue(IDatabase* pDatabase){}
void COperation::Free(){
	delete this;
}
ITable::i_content* COperation::CreateContent(){
	return new content;
}

void COperation::content::Clear(){}
void COperation::content::Set(const std::vector<CTableItem>& content){}
void COperation::content::Free(){
	delete this;
}